// Copyright  2004-2008 Backplane Ltd.
//
// This file is part of Ubiquity formsPlayer
//
// Ubiquity formsPlayer is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3 of the License, or (at your
// option) any later version.
//
// Ubiquity formsPlayer is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License
// along with Ubiquity formsPlayer If not, see <http://www.gnu.org/licenses/>.
//	
//
//   Purpose: String constants defining XFormstagnames.
//   $Id$
#if !defined(TAG_CONSTANTS_DEFINED)
#define TAG_CONSTANTS_DEFINED 1



/*
//BEGIN: attribute name constants
	//last call WD.
const char * const ATTR_ID			= "id";
const char * const ATTR_MODEL		= "model";
const char * const ATTR_BIND		= "bind";
const char * const ATTR_REF			= "ref";
const char * const ATTR_NODESET		= "nodeset";
const char * const ATTR_SHOW		= "xlink:show";
const char * const ATTR_CLASS		= "class";
const char * const ATTR_HREF		= "xlink:href";
const char * const ATTR_LOADHREF	= ATTR_HREF;
const char * const ATTR_NAVINDEX	= "navIndex";
const char * const ATTR_ACCESSKEY	= "accessKey";
const char * const ATTR_INPUTMODE	= "inputMode";
const char * const ATTR_APPEAR		= "selectUI";
const char * const ATTR_SELECTED	= "selected";
const char * const ATTR_RANGE_END	= "end";
const char * const ATTR_RANGE_START	= "start";
const char * const ATTR_RANGE_STEP	= "stepSize";
const char * const ATTR_RPT_START	= "startIndex";
const char * const ATTR_NUMBER		= "number";
const char * const ATTR_SELECTION	= "selection";
//model
const char * const ATTR_EXTFUNC		= "extensionFunctions";
//submission
const char * const ATTR_ACTION	=	"action";
const char * const ATTR_CDATA	=	"CDATASectionElements";
const char * const ATTR_ENCODING	=	"encoding";
const char * const ATTR_INDENT	=	"indent";
//both upload and submit
const char * const ATTR_MEDIA	=	"mediaType";	
const char * const ATTR_METHOD	=	"method";
const char * const ATTR_OMITXML	=	"omitXMLDeclaration";
const char * const ATTR_REPLACE	=	"replace";
const char * const ATTR_ALONE	=	"standalone";
const char * const ATTR_VERSION	=	"version";

//model item properties
const char * const ATTR_TYPE		=	"type";
const char * const ATTR_READONLY	=	"readOnly";
const char * const ATTR_REQUIRED	=	"required";
const char * const ATTR_RELEVANT	=	"relevant";
const char * const ATTR_ISVALID	=	"isValid";
const char * const ATTR_CALCULATE=	"calculate";
const char * const ATTR_MAXOCCURS=	"maxOccurs";
const char * const ATTR_MINOCCURS=	"minOccurs";

//actions
const char * const ATTR_VALUE	=	"value";
const char * const ATTR_SUBMISSION=	"submitInfo";
const char * const ATTR_AT		=	"at";
const char * const ATTR_POSITION	=	"position";
const char * const ATTR_NAME		=	"name";
const char * const ATTR_CASE		=	"case";
const char * const ATTR_IDREF	=	"idref";
const char * const ATTR_LEVEL	=	"level";
	const char * const ATTR_LEVEL_MODAL		=	"modal";
	const char * const ATTR_LEVEL_MODELESS	=	"modeless";
	const char * const ATTR_LEVEL_EPH		=	"ephemeral";

const char * const ATTR_CURSOR	=	"cursor";
const char * const ATTR_REPEAT	=	"repeat";

//events
const char * const ATTR_CANCEL	=	"cancelable";
const char * const ATTR_TARGET	=	"target";
const char * const ATTR_BUBBLES	=	"bubbles";
const char * const ATTR_EVENT	=	"ev:event";
const char * const ATTR_OBSERVER	=	"ev:observer";

//END: attribute name constants

*/
//BEGIN: attribute name constants
	//candidate recommendation
	//changes marked with a star //*

//common
const CComBSTR ATTR_ID			= "id";

//case
// const CComBSTR ATTR_SELECTED	= "selected";

//binding
const CComBSTR ATTR_MODEL		= "model";
const CComBSTR ATTR_BIND		= "bind";
const CComBSTR ATTR_REF			= "ref";
const CComBSTR ATTR_NODESET		= "nodeset";
const CComBSTR ATTR_HREF		= "src"; //*
//UI-COMMON
const CComBSTR ATTR_NAVINDEX	= "navindex";
const CComBSTR ATTR_ACCESSKEY	= "accessKey";
const CComBSTR ATTR_APPEAR		= "appearance"; //*
//model
const CComBSTR ATTR_EXTFUNC		= "functions";
const CComBSTR ATTR_SCHEMA		= "schema"; //* NEW, list of schemata
const CComBSTR ATTR_CONFIG		= "fp:config";
//instance
const CComBSTR ATTR_DOCUMENTELEMENT	="fp:docEl"; //* NEW, our own extension for schema generated data
//submission
const CComBSTR ATTR_ACTION		=	"action";
const CComBSTR ATTR_METHOD		=	"method";
const CComBSTR ATTR_VERSION		=	"version";
const CComBSTR ATTR_INDENT		=	"indent";
const CComBSTR ATTR_ENCODING	=	"encoding";
const CComBSTR ATTR_OMITXML		=	"omit-xml-declaration"; //*
const CComBSTR ATTR_ALONE		=	"standalone";
const CComBSTR ATTR_CDATA		=	"cdata-section-elements"; //*
const CComBSTR ATTR_REPLACE		=	"replace";
const CComBSTR ATTR_SEPARATE	=	"separator"; //* NEW
const CComBSTR ATTR_DOCTYPE_PUBLIC = "doctype-public"; 
const CComBSTR ATTR_DOCTYPE_SYSTEM = "doctype-system";
const CComBSTR ATTR_MEDIA		=	"mediatype";
// submission v1.1
const CComBSTR ATTR_INSTANCE	=	"instance";
// defined in model const CComBSTR ATTR_RELEVANT	=	"relevant";
const CComBSTR ATTR_VALIDATE	=	"validate";

//load
const CComBSTR ATTR_SHOW		= "show"; //*
const CComBSTR ATTR_LOADHREF	= "resource"; //*

const CComBSTR ATTR_CLASS		= "class";


const CComBSTR ATTR_INPUTMODE	= "inputmode"; //*
const CComBSTR ATTR_SELECTED	= "selected";
const CComBSTR ATTR_RANGE_END	= "end";
const CComBSTR ATTR_RANGE_START	= "start";
const CComBSTR ATTR_RANGE_STEP	= "step";
const CComBSTR ATTR_RPT_START	= "startindex"; //*
const CComBSTR ATTR_NUMBER		= "number";
const CComBSTR ATTR_SELECTION	= "selection";

//model item properties
const CComBSTR ATTR_TYPE		= "type";
const CComBSTR ATTR_READONLY	= "readonly"; //*
const CComBSTR ATTR_REQUIRED	= "required";
const CComBSTR ATTR_RELEVANT	= "relevant";
const CComBSTR ATTR_ISVALID		= "constraint"; //*
const CComBSTR ATTR_CALCULATE	= "calculate";
const CComBSTR ATTR_MAXOCCURS	= "maxOccurs";
const CComBSTR ATTR_MINOCCURS	= "minOccurs";

//actions
const CComBSTR ATTR_VALUE		=	"value";
const CComBSTR ATTR_SUBMISSION	=	"submission";		//*
const CComBSTR ATTR_AT			=	"at";
const CComBSTR ATTR_POSITION	=	"position";
const CComBSTR ATTR_NAME		=	"name";
const CComBSTR ATTR_CASE		=	"case";
const CComBSTR ATTR_IDREF		=	"control";			//*
const CComBSTR ATTR_LEVEL		=	"level";
	const char * const ATTR_LEVEL_MODAL		=	"modal";
	const char * const ATTR_LEVEL_MODELESS	=	"modeless";
	const char * const ATTR_LEVEL_EPH		=	"ephemeral";
const CComBSTR ATTR_INCREMENTAL	= "incremental";
const CComBSTR ATTR_CURSOR	=	"index";
const CComBSTR ATTR_REPEAT	=	"repeat";

//duplicate action
const CComBSTR ATTR_ORIGIN	=	"origin";
const CComBSTR ATTR_BEFORE	=	"before";

const CComBSTR ATTR_CONTEXT	=	"context";

//events
const CComBSTR ATTR_CANCEL		=	"cancelable";
const CComBSTR ATTR_TARGET		=	"target";			
const CComBSTR ATTR_BUBBLES		=	"bubbles";
const CComBSTR ATTR_EVENT		=	"ev:event";
const CComBSTR ATTR_OBSERVER	=	"ev:observer";

const CComBSTR ATTR_ITERATE		=	"iterate";
const CComBSTR ATTR_WHILE		=	"while";
const CComBSTR ATTR_IF			=	"if";

//END: attribute name constants

/*
	//last call working draft
//BEGIN: tagname constants

	//model
	const char * const TAG_BIND				= "bind";
	const char * const TAG_SUBMISSION		= "submitInfo";
	const char * const TAG_INSTANCE			= "instance";
	const char * const TAG_SCHEMA			= "schema"; // this is in the xsd namespace now.
	//action
	const char * const TAG_ACTION			= "action";
	const char * const TAG_DELETE			= "delete";
	const char * const TAG_INSERT			= "insert";
	const char * const TAG_MESSAGE			= "message";
	const char * const TAG_SETFOCUS			= "setFocus";
	const char * const TAG_SETREPEATCURSOR	= "setRepeatCursor";
	const char * const TAG_SETVALUE			= "setValue";
	const char * const TAG_TOGGLE			= "toggle";
	const char * const TAG_SUBMITINSTANCE	= "submitInstance";
	const char * const TAG_DISPATCH			= "dispatch";
	const char * const TAG_LOADURI			= "loadURI";
	const char * const TAG_RESETINSTANCE	= "resetInstance";
	const char * const TAG_REFRESH			= "refresh";
	const char * const TAG_RECALCULATE		= "recalculate";
	//common UI
	const char * const TAG_CAPTION			= "caption";
	const char * const TAG_VALUE			= "value";
	const char * const TAG_ALERT			= "alert";
	const char * const TAG_HELP				= "help";
	const char * const TAG_HINT				= "hint";
	//list common
	const char * const TAG_CHOICES			= "choices";
	const char * const TAG_ITEMSET			= "itemset";
	const char * const TAG_ITEM				= "item";

	const char * const TAG_CASE				= "case";
//END: tagname constants.
*/
//BEGIN: tagname constants
	//candidate recommendation
	//changes marked with a star //*
	
	//model
	const CComBSTR TAG_BIND				= "bind";
	const CComBSTR TAG_SUBMISSION		= "submission";		//*
	const CComBSTR TAG_INSTANCE			= "instance";
	const CComBSTR TAG_SCHEMA			= "schema"; // this is in the xsd namespace now.
	//action
	const CComBSTR TAG_ACTION			= "action";
	const CComBSTR TAG_DELETE			= "delete";
	const CComBSTR TAG_INSERT			= "insert";
	const CComBSTR TAG_MESSAGE			= "message";
	const CComBSTR TAG_SETFOCUS			= "setfocus";		//*
	const CComBSTR TAG_SETREPEATCURSOR	= "setindex";		//*
	const CComBSTR TAG_SETVALUE			= "setvalue";		//*
	const CComBSTR TAG_TOGGLE			= "toggle";
	const CComBSTR TAG_SUBMITINSTANCE	= "send";			//*
	const CComBSTR TAG_DISPATCH			= "dispatch";
	const CComBSTR TAG_LOADURI			= "load";			//*
	const CComBSTR TAG_RESETINSTANCE	= "reset";			//*
	const CComBSTR TAG_REFRESH			= "refresh";
	const CComBSTR TAG_RECALCULATE		= "recalculate";
	const CComBSTR TAG_REBUILD			= "rebuild";
	const CComBSTR TAG_REVALIDATE		= "revalidate";

	//common UI
	const CComBSTR TAG_CAPTION			= "label";			//*
	const CComBSTR TAG_VALUE			= "value";
	const CComBSTR TAG_COPY				= "copy";			//* New
	const CComBSTR TAG_ALERT			= "alert";
	const CComBSTR TAG_HELP				= "help";
	const CComBSTR TAG_HINT				= "hint";
	//list common
	const CComBSTR TAG_CHOICES			= "choices";
	const CComBSTR TAG_ITEMSET			= "itemset";
	const CComBSTR TAG_ITEM				= "item";

	const CComBSTR TAG_CASE				= "case";
	const CComBSTR TAG_FILENAME		= L"filename";
	const CComBSTR TAG_MEDIATYPE		= L"mediatype";

	const CComBSTR TAG_EXTENSION		= "extension";			//*

//END: tagname constants.


#endif